UseTrackedStateType
import { UseTrackedStateType } from "@hyper-fetch/react"
Description
Defined in helpers/use-tracked-state/use-tracked-state.types.ts:33
Preview
type UseTrackedStateType<T> = {
data: null | ExtractResponse<T>;
error: null | ExtractError<T>;
loading: boolean;
retries: number;
status: null | number;
timestamp: null | Date;
}
Structure
{
data: null | T extends Command<infer D, any, any, any, any, any, any, any, any, any> ? D : never;
error: null | T extends Command<any, any, any, infer G, infer L, any, any, any, any, any> ? \G\ | \L\ : never;
loading: boolean;
retries: number;
status: null | number;
timestamp: null | Date;
}